﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace Tebbee.Business.Server
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IPublisherSer" in both code and config file together.
    [ServiceContract]
    public interface IPublisherSer
    {
        [OperationContract]
        Channel_GetByPubId_Result GetChanelByPubId(int pubid);
        [OperationContract]
        Channel_GetCurrentChanel_Result GetCurrentChanel(string userName);
        [OperationContract]
        ICollection<Advertise_GetAdvByPublisherId_Result> GetAdvByPubId(int pubId, int startRow, int elementQ, int orderBy);
        [OperationContract]
        ICollection<Advertise_GetPubAds_Result> GetAdvByCurrentPub(string uid, int startRow, int elementQ, int orderBy);
        [OperationContract]
        int Channel_Edit(Publisher pub);
        [OperationContract]
        void Channel_ChangeAvatar(int pubid, string logoLink);
        [OperationContract]
        void Channel_ChangeCover(int pubid, string coverLink);
        [OperationContract]
        ICollection<Publisher_GetSubcribers_Result> Channel_Subcribers(string pubName);
        [OperationContract]
        ICollection<Publisher_GetNewComment_Result> Channel_NewComments(string pubName);
        [OperationContract]
        void Channel_updateAbout(string pubName, string about);
        [OperationContract]
        ICollection<Gallery_GetByPub_Result> Gallery_GetByPub(string pubName);
        [OperationContract]
        ICollection<Gallery_GetByPubId_Result> Gallery_GetByPubId(int pubId);
        [OperationContract]
        void Gallery_insert(string pubName, int advId, string imgLink);
        //[OperationContract]
        //App_Publisher_Get_Result GetPublisher(string userName);
    }
}
